//
//  GGGetTableViewCell.m
//  tantan
//
//  Created by SQHH on 2017/12/20.
//  Copyright © 2017年 SQHH. All rights reserved.
//

#import "GGGetTableViewCell.h"

@interface GGGetTableViewCell () <
UITableViewDataSource,
UITableViewDelegate
>

/// fwr
@property (nonatomic, strong) UILabel *fas;

/// fdsfsf数据源
@property (nonatomic, strong) NSMutableArray *data;

/// dsfdasf
@property (nonatomic, strong) UITableView *fdsfsf;

/// fdsaf
@property (nonatomic, strong) UIButton *button;

/// fsadfs
@property (nonatomic, strong) UITableView *sfdafa;

@end

@implementation GGGetTableViewCell

#pragma mark - # Delegate
//MARK: UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return self.data.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	return nil;
}

//MARK: UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
}

#pragma mark - # Event Response
- (void)buttonTouchUpInside:(UIButton *)sender {
	
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
		[self.contentView addSubview:self.fas];
		[self.contentView addSubview:self.fdsfsf];
		[self.contentView addSubview:self.button];
		[self.contentView addSubview:self.sfdafa];
	}
	return self;
}

#pragma mark - # Getter
- (UILabel *)fas {
	if (!_fas) {
		_fas = [[UILabel alloc] init];
	}
	return _fas;
}

- (NSMutableArray *)data {
	if (!_data) {
		_data = [[NSMutableArray alloc] init];
	}
	return _data;
}

- (UITableView *)fdsfsf {
	if (!_fdsfsf) {
		_fdsfsf = [[UITableView alloc] init];
		[_fdsfsf setDelegate:self];
		[_fdsfsf setDataSource:self];
	}
	return _fdsfsf;
}

- (UIButton *)button {
	if (!_button) {
		_button = [[UIButton alloc] init];
		[_button addTarget:self action:@selector(buttonTouchUpInside:) forControlEvents:UIControlEventTouchUpInside];
	}
	return _button;
}

- (UITableView *)sfdafa {
	if (!_sfdafa) {
		_sfdafa = [[UITableView alloc] init];
		[_sfdafa setDelegate:self];
		[_sfdafa setDataSource:self];
	}
	return _sfdafa;
}

@end
